package com.nash.demands;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;

public class StocksActivity extends Activity {
  Button btn;
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    btn = new Button(this);
    btn.setText("This is the Stocks tab");
    setContentView(btn);
    btn.setOnClickListener(new OnClickListener() {
      
      @Override
      public void onClick(View arg0) {
       Animation anim= AnimationUtils.loadAnimation(StocksActivity.this, R.anim.test);
       btn.setAnimation(anim);
        
      }
    });
  }
  
}
